package com.wavehi.error.web.controller.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @Author WaveHi
 * @Date 15/11/2021 下午 8:12
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@ControllerAdvice
public class CommonExceptionHandler {

    @ExceptionHandler(ArithmeticException.class)
    public String dealException(Exception e) {
        System.out.println("Wow!");
        return "4xx";
    }
}
